package com.feicheng.controller.wx;

import com.feicheng.common.result.ResultInfo;
import com.feicheng.service.IFWxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("/wx")
@RequestMapping("/wx")
public class WxController {

    @Autowired
    IFWxService iFWxService;

    @PutMapping("/autor-bind")
    public ResultInfo autorBind(
            String tel,
            String password,
            String openId,
            Boolean sex,
            Integer age,
            String name
    ) {
        return iFWxService.autorBind(tel, password, openId, sex, age, name);
    }
}
